package com.gouda.core.service.uesCity;

import com.gouda.core.dto.useCity.UseCityDto;
import com.gouda.core.enums.GeneralStateEnum;

import java.util.List;

/**
 * Created by souu on 15/12/5.
 */
public interface UseCityService {

    /**
     * 获得所有开通城市
     * @return
     */
    List<UseCityDto> getAllUseCity();

    /**
     * 根据名称判断是否开通
     * @param cityName
     * @return
     */
    boolean isUseCity(String cityName);

    /**
     * 添加开通城市
     * @param cityName
     * @param isallEnum
     */
    void createUseCity(String cityName,GeneralStateEnum isallEnum);

    /**
     * 修改开通城市
     * @param id
     * @param cityName
     * @param isallEnum
     */
    void updateUseCity(long id, String cityName, GeneralStateEnum isallEnum, GeneralStateEnum stateEnum);
}
